package com.jic.enums;

public enum DeptTypeEnums {
	OPERATION_PLATFORM(0,"运营平台"),
	CHILD_PLATFORM(1,"子平台"),
	MERCHANT_PLATFORM(2,"商家"),
	STORE_PLATFORM(3,"店铺"),
	;

	private Integer name;
	private String desc;
	public Integer getName() {
		return name;
	}
	public void setName(Integer name) {
		this.name = name;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}

	private DeptTypeEnums(Integer name, String desc) {
		this.name = name;
		this.desc = desc;
	}

	public static DeptTypeEnums getByName(Integer name){
		DeptTypeEnums[] values = DeptTypeEnums.values();
		for(DeptTypeEnums value : values){
			if(value.getName().equals(name)){
				return value;
			}
		}
		return null;
	}
	
}
